CXX = $(shell wx-config --cxx)
 
PROGRAM =  SimuVille

OBJECTS = ui/SimuVilleFrame.o ui/DrawPanel.o main.o engine/character.o engine/point2d.o engine/player.o engine/harvester.o engine/builder.o
 
 # implementation
 
.SUFFIXES:      .o .cpp
 
.cpp.o :
	$(CXX) -c `wx-config --cxxflags` -o $@ $<
 
all:    $(PROGRAM)
 
 $(PROGRAM):     $(OBJECTS)
	$(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
 
clean:
	rm -f *.o ui/*.o engine/*.o $(PROGRAM)
